﻿using AutoMapper;
using B.S.BasicData.Api.Write.Application.Command.Accout;
using B.S.BasicData.Api.Write.Application.Command.GridPerson;
using B.S.BasicData.Api.Write.Application.Command.Log;
using B.S.BasicData.Domain.Entities;

namespace B.S.BasicData.Api.Write
{
    public class AutoMaperProfile : Profile
    {
        public AutoMaperProfile()
        {
            CreateMap<CreateLogCommand, LogModel>().ReverseMap();
            CreateMap<UpdateLogCommand, LogModel>().ReverseMap();
            CreateMap<CreateAccountCommand, AccountModel>().ReverseMap();
            CreateMap<UpdateAccountCommand, AccountModel>().ReverseMap();
            CreateMap<CreateGridPersonCommand, AccountModel>().ReverseMap();
            CreateMap<UpdateGridPersonCommand, AccountModel>().ReverseMap();
        }
    }
}
